package com.xinshujia.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xinshujia.entity.DeviceEntity;

import java.util.List;

/**
 * *************************************
 * *   @author: 野狼上校               **
 * *   @since: 2024-08-06 15:18       **
 * *   @version: 1.0                  **
 * *************************************
 * <p>
 * 设备业务接口
 */
public interface DeviceService extends IService<DeviceEntity> {
    /**
     * 分页查询
     */
    Page<DeviceEntity> getDevicesByPage(Long pageNum, Long pageSize, String companyName);

    /**
     * 添加设备
     */
    boolean insertDevice(DeviceEntity deviceEntity);

    /**
     * 所有的设备列表
     */
    List<DeviceEntity> getAllDevices();
}
